package com.gmail.mariska.martin.server;

import org.apache.log4j.Logger;

import com.gmail.mariska.martin.server.intf.Request;
import com.gmail.mariska.martin.server.intf.Response;

public class BussinesWebActionDecorator implements IWebActionContainer {
	static final Logger logger = Logger.getLogger(BussinesWebActionDecorator.class);
	private final IWebActionContainer internalWebAction;

	public BussinesWebActionDecorator(IWebActionContainer webAction) {
		internalWebAction = webAction;
	}

	@Override
	public String handle(Request request, Response response) {
		logger.info("session get");
		logger.info("create webUser (session object)");
		String handle = internalWebAction.handle(request, response);
		logger.info("intern check of web action response - " + handle);
		return handle;
	}
}
